/** 视频摄像机管理 */
import { Get, Post, PostJson } from './request';

/** 获取所有视频摄像机列表 */
export const getCameraAll = () => Get('/camera/all')

/** 删除摄像机
 * ids
 */
export const deleteCamera = (params: any) => Post('/camera/delete', params)

/** 区域内视频摄像机列表
 * areaId
 */
export const getCamerasByArea = (params: any) => Post('/camera/getByArea', params)

/** 视频摄像机信息
 * id
 */
export const getCameraInfo = (id: number) => Get(`/camera/info/${id}`)

/** 摄像机分页列表
 * 
 */
export const getCameraList = (params: any) => Get(`/camera/list`, params)

/** 新增摄像机 */
export const addCamera = (data: any) => PostJson('/camera/save', data)

/** 更新摄像机 */
export const updateCamera = (data: any) => PostJson('camera/update', data)
